package com.cropdoctor.model.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Description: 【 用户角色表 实体 】
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
@ApiModel(value = "SysRolePo",description = "角色相关Po")
public class SysRolePo {

    // ==================== FIELDS ====================

    /**
     * 角色名
     */
    @TableField(value = "id")
    @ApiModelProperty(value = "角色id",example = "1")
    private Integer id;

    /**
     * 角色名
     */
    @TableField(value = "role_name")
    @ApiModelProperty(value = "角色名称",example = "管理员")
    private String roleName;

    /**
     * 角色说明
     */
    @TableField(value = "role_description")
    @ApiModelProperty(value = "角色描述",example = "管理员，拥有所有权限")
    private String roleDescription;

    /**
     * 角色code
     */
    @TableField(value = "role_code")
    @ApiModelProperty(value = "角色码",example = "admin")
    private String roleCode;

    // ==================== NON-PERSISTENT ====================

    // ==================== GET AND SET METHODS ====================

}
